<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>

<script type="text/javascript">
$(document).ready(function() {

	$(".actionViewSong").click(function() {
		var uri = $(this).attr('href'); 
		if (uri==='') {
			alert('ไม่มีข้อมูลเพลง');
		}
		else {
			ISS.Popup.Windows.Show_Modal("View Song", uri, null, 280, 420, null);		
		}
		return false;
	});
	
}); 
</script>

	  <div id="playListTop">
        <h3>รายการเพลงออกใหม่... สดทุกวัน</h3>
      </div>
      <div id="playListBody">
        <div class="head">
          <p class="left">PLAY</p>
          <p class="centr">TRACK</p>
          <p class="right">ARTIST</p>
        </div>
        <?php 
        	$i = 0;
        	foreach ($new_songs as $song) {
        		$i++;
        		if (($i % 2)==0) { ?>
        			<div class="playListLight">
        <?php 	}
        		else { ?>
        			<div class="playListDark">
        <?php 	}
		?>
          <a href="<?php echo url::base() . 'index.php/top_order/show/show_song/'. $song['album_id'] .'/'. $song['track_no']; ?>" class="actionViewSong"><p class="play"></p></a>
          <p class="track"><?php echo html::specialchars($song['title']);?></p>
          <p class="artist"><?php echo html::specialchars($song['artist']);?></p>
		<?php         		
        		echo '</div>';
        	} 
        ?>

      </div>
      <div id="playListBot">
      </div>